// 用户相关请求
import { request } from "@/utils"

// 登录请求
const loginAPI = (data) => {
  return request({
    method: 'post',
    url: '/authorizations',
    data
  })
}

// 获取用户信息
const getProfileAPI = (data) => {
  return request({
    method: 'get',
    url: '/user/profile',
  })
}

export { loginAPI, getProfileAPI }